package com.redhipps.hips.client.model;

import java.util.List;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Schedule extends Model {

  @Persistent(serialized = "true")
  private DateTime startTime;

  @Persistent
  private List<ScheduleBlock> scheduleBlocks;

  @NotPersistent
  @Deprecated
  private List<ScheduleSolution> scheduleSolutions;

  @Persistent
  private List<DoctorConstraint> doctorConstraints;

  public Schedule() {}

  @Deprecated
  public Schedule(PythonDatastoreKey key) {
    super(key);
  }

  public DateTime getStartTime() {
    return startTime;
  }

  public void setStartTime(DateTime startTime) {
    this.startTime = startTime;
  }

  public List<ScheduleBlock> getScheduleBlocks() {
    return scheduleBlocks;
  }

  public void setScheduleBlocks(List<ScheduleBlock> scheduleBlocks) {
    this.scheduleBlocks = scheduleBlocks;
  }

  @Deprecated
  public List<ScheduleSolution> getScheduleSolutions() {
    return scheduleSolutions;
  }

  @Deprecated
  public void setScheduleSolutions(List<ScheduleSolution> scheduleSolutions) {
    this.scheduleSolutions = scheduleSolutions;
  }

  public List<DoctorConstraint> getDoctorConstraints() {
    return doctorConstraints;
  }

  public void setDoctorConstraints(List<DoctorConstraint> doctorConstraints) {
    this.doctorConstraints = doctorConstraints;
  }

}
